home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
multi604.zip
/
AUTOPLAY.ZIP
/
AUTOPLAY.SLT
< prev
next >
Wrap
Text File
|
1993-02-16
|
4KB
|
107 lines
// GlobalWar AutoPlay script for Telix
// Public Domain
// Computer Deli, Inc.
// PO Box 5481
// Everett, WA 98206
// VOICE: (206) 252-4317
// Sorry, because AutoPlay is Public Domain, we cannot supply
// extensive support for AutoPlay. If you need assistance with
// AutoPlay, please ask your Sysop or local users, do not call
// us.
//
// AutoPlay is for use with TELIX (from Exis Inc.) and GWTERM
// by Joel Bergen. Computer Deli, Inc., is in no way
// affiliated with either Exis or Joel Bergen. No official
// support for AutoPlay exists.
//
// DISCLAIMER
// NO WARANTY ON AUTOPLAY PROGAM OR MANUAL
//
// THIS SOFTWARE, THE AUTOPLAY PROGRAM AND MANUAL, IS
// PROVIDED "AS IS" WITHOUT ANY EXPRESSED OR IMPLIED
// WARRANTIES WHATSOEVER. BECAUSE OF THE DIVERSITY
// OF CONDITIONS AND HARDWARE UNDER WHICH THIS
// SOFTWARE MAY BE USED, NO WARRANTY OF FITNESS FOR A
// PARTICULAR PURPOSE IS OFFERED. THE AUTHOR, GEOFF
// SHEPHERD, OR COMPUTER DELI, INC., CANNOT BE HELD
// RESPONSIBLE FOR DIRECT, INDIRECT, INCIDENTAL,
// CONCEQUENTAL, OR OTHER DAMAGES DUE TO YOUR ABILITY
// OR INABILITY TO USE THIS SOFTWARE, EVEN IF THE
// AUTHOR OR COMPUTER DELI, INC. HAS BEEN ADVISED OF
// THE POSSIBILITY OF SUCH DAMAGES. THE USER IS
// ADVISED TO TEST THIS SOFTWARE THOROUGHLY BEFORE
// RELYING ON IT AND MUST ASSUME THE ENTIRE RISK OF
// USING THIS SOFTWARE.
//
// This script may be mangled, modified, deleted, appended, sold, etc
// as long as you hurt no one but yourself in the process.
//
// o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
// holds delay value for handshaking
str sDelay[2];
// Please leave credit where credit is due, thanks.
str st1[64]="MonoCom AutoPlay v2.1- Public Domain - Computer Deli, Inc.";
main()
{
str st[64], st2[64];
int baud, port, dly;
baud=get_baud();
port=get_port();
itos(port,st);
itos(baud,st2);
strcat(st," ");
strcat(st,st2);
clear_scr();
printsc(st1);
getdelay();
prints("");
dly=stoi(sDelay)-1;
loop:
// ^M^H^M^H is the signal from Global War to start your engines
// We'll just sit here and wait for it. Every second, carrier
// is checked. If it's lost, then AutoPlay is terminated
while (!waitfor("^M^H^M^H",1))
if (!carrier()) {
prints("AutoPlay Deactivated.");
return;
}
// this is handshaking for GlobalWar.
// If GW receives a '1' through '8' immediately after the signal
// is sent to the remote, GW will wait that many seconds before
// starting into the game to allow the remote system time to
// sufficient time to load GWTERM
cputs(sDelay);
flushbuf();
run("monocom",st,0);
flushbuf();
goto loop;
}
getdelay()
// Reads in delay value from configuration file.
{
int file;
str name[64];
name = _telix_dir;
strcat(name,"AUTOPLAY.CFG");
file = fopen(name, "r");
if (!file) {
prints("^GAUTOPLAY.CFG not found, using 9 second delay.");
sDelay="9";
return;
}
fread(sDelay,1,file);
fclose(file);
}